package com.dong.demo222.service.impl;

import com.dong.demo222.domin.SysUser;
import com.dong.demo222.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl {

    @Autowired
    private SysUserMapper sysUserMapper;

    public SysUser selectUserByUsername(String userName){
        return sysUserMapper.selectUserByUsername(userName);
    }


    public List<SysUser> selectUserList(SysUser user) {
        return sysUserMapper.selectUserList(user);


    }
}
